package com.lanren.familybookapp.app;

/**
 * @ClassName UserInfoBean
 * @Description TODO
 * @Author chongheng.wang
 * @Date 2019/10/3 20:25
 * @Version 1.0
 */
public class UserInfoBean {

    /**
     * //用户 id
     */
    private String userId;

    /**
     * //用户昵称
     */
    private String userName;

    /**
     * //用户性别 1 代表男 ，2代表女性
     */
    private Byte userSex;

    /**
     * //用户年龄
     */
    private Integer userAge;

    /**
     * //用户手机号
     */
    private String userPhone;

    /**
     * //邮箱
     */
    private String userEmail;

    /**
     * //头像
     */
    private String userAvatar;

    /**
     * //记账累积天数
     */
    private Integer userBookkeepingTime;

    /**
     * //用户当前使用账簿
     */
    private Integer userUseBook;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Byte getUserSex() {
        return userSex;
    }

    public void setUserSex(Byte userSex) {
        this.userSex = userSex;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public Integer getUserBookkeepingTime() {
        return userBookkeepingTime;
    }

    public void setUserBookkeepingTime(Integer userBookkeepingTime) {
        this.userBookkeepingTime = userBookkeepingTime;
    }

    public Integer getUserUseBook() {
        if (userUseBook == null || userUseBook == 0) {
            return 0;
        }
        return userUseBook;
    }

    public void setUserUseBook(Integer userUseBook) {
        this.userUseBook = userUseBook;
    }
}
